package com.runfig.springcloud.hystrix;

import com.runfig.springcloud.domain.Product;
import com.runfig.springcloud.fegin.ProductFeignApi;
import org.springframework.stereotype.Component;

import java.math.BigDecimal;

@Component
public class ProductFeignHystrix implements ProductFeignApi {

    @Override
    public Product get(Long id) {
        System.out.println("zzz:走到了超时方法");
        Product product = new Product();
        product.setPrice(new BigDecimal("11111"));
        return product;
    }
}
